<template>
  <div class="page-404 text-center" :style="{height: height +'px'}">
    <img src="/static/images/common/no-data.png" alt="">
    <h1>404</h1>
    <p class="c-gray mg-ver">抱歉，您访问的页面不存在！</p>
    <van-row 
      type="flex" 
      gutter="20"
      justify="center"
      class="c-main" 
    >
      <van-col @click="$goPageBack()"><van-icon name="arrow-left" />&nbsp;返回上页</van-col>
      <van-col @click="$goPage('index')"><van-icon class-prefix="ucai-icon"  name="caigouzhongxin" />&nbsp;前往首页</van-col>
    </van-row>
    <slogan class="mg-top-xxl"/>
  </div>
</template>
<script>
  import {
    Icon,
    Row,
    Col
  } from 'vant'
import Slogan from '@cmpt/slogan'
export default {
  name: 'error-404',
  components: {
    [Icon.name]: Icon,
    [Row.name]: Row,
    [Col.name]: Col,
    [Slogan.name]: Slogan
  },
  data(){
      return {
        height: window.innerHeight
      }
  },
  mounted () {
    const _self = this;
    window.onresize = () => {
      _self.height = window.innerHeight
    }
  },
  methods: {
  }
}
</script>

<style lang="less" scoped>
@import '~@style_m/basic/utils/index.less';
.page-404 {
  background: white;
  padding: 0 .49rem;
  img {
    width: 100px;
    margin: 20px auto;
  }
  h1 {
    font-size: 50px;
    font-family: "Times New Roman",Georgia,Serif;
    color: #777;
  }
  .van-row {
    line-height: 1;
    font-size: 14px;
   .van-icon {
     vertical-align: top;
   }
  }
}
</style>
